import { useFetchRefGet, useFetchRefPost } from '~/composables/useHttp/useFetchRef'

/**
 * 增加系统访问量
 */
export const lookViewApi = () => {
    return useFetchRefPost<ViewVo>('lookViewApi', '/web/look')
}
/**
 * 系统访问量
 */
export const viewApi = () => {
    return useFetchRefGet<ViewVo>('viewApi', '/web/view')
}
/**
 * 网站信息统计
 */
export const viewCountsApi = () => {
    return useFetchRefGet<ViewVo>('viewCountsApi', '/web/counts')
}